package com.cloud.common.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author: Dream_xun
 * @date: 2020-08-27 0:24
 * @description: 正则校验工具
 */
public class RegexpUitl {
    public static boolean match(String regex, String value) {
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(value);
        return matcher.matches();
    }
}
